<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:78:"D:\phpstudy\WWW\jiarong\public/../application/admin\view\wechat\card\edit.html";i:1523891109;s:66:"D:\phpstudy\WWW\jiarong\application\admin\view\layout\default.html";i:1523891109;s:63:"D:\phpstudy\WWW\jiarong\application\admin\view\common\meta.html";i:1523891109;s:65:"D:\phpstudy\WWW\jiarong\application\admin\view\common\script.html";i:1523891109;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="__CDN__/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="__CDN__/assets/js/html5shiv.js"></script>
  <script src="__CDN__/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#base" data-toggle="tab">基础</a></li>
                <li><a href="#other" data-toggle="tab">其他</a></li>
                <li><a href="#link" data-toggle="tab">链接</a></li>
            </ul>
        </div>
        <div class="panel-body">
            <div id="myTabContent" class="tab-content">

            <div class="tab-pane fade active in" id="base">

                <div class="form-group hidden">
                    <label for="c-logo_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Logo_url'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-logo_url" data-rule="required" class="form-control" size="50" name="row[logo_url]" type="text" placeholder="建议图片尺寸为 300*300" value="<?php echo $row['logo_url']; ?>">
                            <div class="input-group-addon no-border no-padding">
                                <span><button type="button" id="plupload-logo_url" class="btn btn-danger plupload" data-input-id="c-logo_url" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo_url"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                                <span><button type="button" id="fachoose-logo_url" class="btn btn-primary fachoose" data-input-id="c-logo_url" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                            </div>
                            <span class="msg-box n-right" for="c-logo_url"></span>
                        </div>
                        <ul class="row list-inline plupload-preview" id="p-logo_url"></ul>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-card_id" class="control-label col-xs-12 col-sm-2"><?php echo __('CardID'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-card_id" data-rule="required" class="form-control" type="text" placeholder="微有货" maxlength="12" value="<?php echo $row['card_id']; ?>" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-brand_name" class="control-label col-xs-12 col-sm-2"><?php echo __('Brand_name'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-brand_name" data-rule="required" class="form-control" name="row[brand_name]" type="text" placeholder="微有货" maxlength="12" value="<?php echo $row['brand_name']; ?>" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-title" class="control-label col-xs-12 col-sm-2"><?php echo __('Title'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" placeholder="130元 代金券"  maxlength="15" value="<?php echo $row['title']; ?>" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-sub_title" class="control-label col-xs-12 col-sm-2"><?php echo __('Sub_title'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-sub_title" class="form-control" name="row[sub_title]" type="text" placeholder="满300元可用"  maxlength="12" value="<?php echo $row['sub_title']; ?>" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-thumb_img" class="control-label col-xs-12 col-sm-2"><?php echo __('Card_img'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-thumb_img" data-rule="required" class="form-control" size="50" name="row[thumb_img]" type="text" value="<?php echo $row['thumb_img']; ?>">
                            <div class="input-group-addon no-border no-padding">
                                <span><button type="button" id="plupload-thumb_img" class="btn btn-danger plupload" data-input-id="c-thumb_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-thumb_img"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                                <span><button type="button" id="fachoose-thumb_img" class="btn btn-primary fachoose" data-input-id="c-thumb_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                            </div>
                            <span class="msg-box n-right" for="c-thumb_img"></span>
                        </div>
                        <ul class="row list-inline plupload-preview" id="p-thumb_img"></ul>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-color" class="control-label col-xs-12 col-sm-2"><?php echo __('Color'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">

                        <div class="radio" id="c-color" data-rule="required" disabled>
                            <?php if(is_array($colorList) || $colorList instanceof \think\Collection || $colorList instanceof \think\Paginator): if( count($colorList)==0 ) : echo "" ;else: foreach($colorList as $key=>$vo): ?>
                            <label for="row[color]-<?php echo $key; ?>">
                                <input id="row[color]-<?php echo $key; ?>" name="row[color]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['color'])?$row['color']:explode(',',$row['color']))): ?>checked<?php endif; ?> />
                                <br>
                                <div class="col-sm-3" style="background-color: <?php echo $vo; ?>; height: 50px;"></div></label>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-notice" class="control-label col-xs-12 col-sm-2"><?php echo __('Notice'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-notice" data-rule="required" class="form-control" name="row[notice]" type="text" value="<?php echo $row['notice']; ?>" maxlength="16" placeholder="使用时向服务员出示此券" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-description" class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea id="c-description" class="form-control editor" rows="5" name="row[description]" cols="50" maxlength="1024" placeholder="不可与其他优惠同享 仅限线下使用 (字数限制1024)" disabled><?php echo $row['description']; ?></textarea>
                    </div>
                </div>
                <div class="form-group">
                <?php switch($row['card_type']): case "CASH": ?>
                        <label for="c-least_cost" class="control-label col-xs-12 col-sm-2"><?php echo __('CASH_COUPON'); ?> :</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <span class="input-group-addon">满</span>
                                <input id="c-least_cost" data-rule="required" class="form-control" name="row[least_cost]" type="number" value="<?php echo $row['least_cost']; ?>" disabled>
                                </div>
                        </div>
                    </div>
                <div class="form-group">

                        <label for="c-reduce_cost" class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <span class="input-group-addon">减</span>
                                <input id="c-reduce_cost" data-rule="required" class="form-control pull-left" name="row[reduce_cost]" type="number" value="<?php echo $row['reduce_cost']; ?>" disabled>
                            </div>
                        </div>

                    <?php break; case "DISCOUNT": ?>
                        <label for="c-discount" class="control-label col-xs-12 col-sm-2"><?php echo __('DISCOUNT'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-discount" data-rule="required" class="form-control" name="row[discount]" type="number" max="9.9" min="1.0" step="0.1" value="<?php echo $row['discount']; ?>" disabled>
                                <span class="input-group-addon">折</span>
                            </div>
                        </div>
                    <?php break; case "GENERAL_COUPON": ?>
                        <label for="c-default_detail" class="control-label col-xs-12 col-sm-2"><?php echo __('Default_detail'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-default_detail" class="form-control editor" rows="5" name="row[default_detail]" cols="50" placeholder="<?php echo __('Default_detail'); ?> (字数限制3072)" disabled></textarea>
                        </div>
                    <?php break; case "GIFT": ?>
                        <label for="c-gift" class="control-label col-xs-12 col-sm-2"><?php echo __('Gift'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-gift" class="form-control editor" rows="5" name="row[gift]" cols="50" placeholder="<?php echo __('Gift'); ?> (字数限制3072)" disabled><?php echo $row['gift']; ?></textarea>
                        </div>
                    <?php break; case "GROUPON": ?>
                        <label for="c-deal_detail" class="control-label col-xs-12 col-sm-2"><?php echo __('Deal_detail'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-deal_detail" class="form-control editor" rows="5" name="row[deal_detail]" cols="50" placeholder="<?php echo __('Deal_detail'); ?> (字数限制3072)" disabled><?php echo $row['deal_detail']; ?></textarea>
                        </div>
                    <?php break; endswitch; ?>
                </div>
                <div class="form-group">
                    <label for="c-quantity" class="control-label col-xs-12 col-sm-2"><?php echo __('Quantity'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-quantity" data-rule="required" class="form-control" name="row[quantity]" type="number" value="<?php echo $row['quantity']; ?>" maxlength="5" disabled>
                    </div>
                </div>
            </div>

            <div class="tab-pane fade" id="other">
                <div class="form-group">
                    <label for="c-date_type" class="control-label col-xs-12 col-sm-2"><?php echo __('Type'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <select  id="c-date_type" data-rule="required" class="form-control selectpicker" name="row[date_type]" disabled>
                            <?php if(is_array($dateTypeList) || $dateTypeList instanceof \think\Collection || $dateTypeList instanceof \think\Paginator): if( count($dateTypeList)==0 ) : echo "" ;else: foreach($dateTypeList as $key=>$vo): ?>
                                <option value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['date_type'])?$row['date_type']:explode(',',$row['date_type']))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>
                    </div>
                </div>
                <div id="date_block1">
                    <!--// type为 动态时间 -->
                    <div class="form-group">
                        <label for="c-fixed_term" class="control-label col-xs-12 col-sm-2"><?php echo __('Fixed_term'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-fixed_term" data-rule="required" class="form-control" name="row[fixed_term]" type="number" value="<?php echo $row['fixed_term']; ?>" disabled>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-fixed_begin_term" class="control-label col-xs-12 col-sm-2"><?php echo __('Fixed_begin_term'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-fixed_begin_term" data-rule="required" class="form-control" name="row[fixed_begin_term]" type="number" value="<?php echo $row['fixed_begin_term']; ?>" disabled>
                        </div>
                    </div>
                    <!-- type为 动态时间// -->
                </div>
                <div id="date_block2" class="hidden">
                    <!--// type为 固定时间戳  -->
                    <div class="form-group">
                        <label for="c-begin_timestamp" class="control-label col-xs-12 col-sm-2"><?php echo __('Begin_timestamp'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-begin_timestamp" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[begin_timestamp]" value="<?php echo $row['begin_timestamp']; ?>" type="text" disabled>

                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-end_timestamp" class="control-label col-xs-12 col-sm-2"><?php echo __('End_timestamp'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-end_timestamp" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[end_timestamp]" value="<?php echo $row['end_timestamp']; ?>" type="text" disabled>
                        </div>
                    </div>
                    <!-- type为 固定时间戳 // -->
                </div>
                <hr>
                <!--    <div class="form-group">
                        <label for="c-location_id_list" class="control-label col-xs-12 col-sm-2"><?php echo __('Location_id_list'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-location_id_list" data-rule="required" class="form-control" name="row[location_id_list]" type="number" value="0">
                        </div>
                    </div>-->
                <div class="form-group">
                    <label for="c-get_limit" class="control-label col-xs-12 col-sm-2"><?php echo __('Get_limit'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-get_limit" class="form-control" name="row[get_limit]" type="text" value="<?php echo $row['get_limit']; ?>" disabled>
                    </div>
                </div>
                <!-- <div class="form-group">
                     <label for="c-use_custom_code" class="control-label col-xs-12 col-sm-2"><?php echo __('Use_custom_code'); ?>:</label>
                     <div class="col-xs-12 col-sm-8">

                         <select  id="c-use_custom_code" data-rule="required" class="form-control selectpicker" name="row[use_custom_code]">
                             <?php if(is_array($useCustomCodeList) || $useCustomCodeList instanceof \think\Collection || $useCustomCodeList instanceof \think\Paginator): if( count($useCustomCodeList)==0 ) : echo "" ;else: foreach($useCustomCodeList as $key=>$vo): ?>
                                 <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"false"))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                             <?php endforeach; endif; else: echo "" ;endif; ?>
                         </select>

                     </div>
                 </div>
                 <div class="form-group">
                     <label for="c-get_custom_code_mode" class="control-label col-xs-12 col-sm-2"><?php echo __('Get_custom_code_mode'); ?>:</label>
                     <div class="col-xs-12 col-sm-8">

                         <select  id="c-get_custom_code_mode" data-rule="required" class="form-control selectpicker" name="row[get_custom_code_mode]">
                             <?php if(is_array($getCustomCodeModeList) || $getCustomCodeModeList instanceof \think\Collection || $getCustomCodeModeList instanceof \think\Paginator): if( count($getCustomCodeModeList)==0 ) : echo "" ;else: foreach($getCustomCodeModeList as $key=>$vo): ?>
                                 <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                             <?php endforeach; endif; else: echo "" ;endif; ?>
                         </select>

                     </div>
                 </div>
                 <div class="form-group">
                     <label for="c-bind_openid" class="control-label col-xs-12 col-sm-2"><?php echo __('Bind_openid'); ?>:</label>
                     <div class="col-xs-12 col-sm-8">

                         <select  id="c-bind_openid" data-rule="required" class="form-control selectpicker" name="row[bind_openid]">
                             <?php if(is_array($bindOpenidList) || $bindOpenidList instanceof \think\Collection || $bindOpenidList instanceof \think\Paginator): if( count($bindOpenidList)==0 ) : echo "" ;else: foreach($bindOpenidList as $key=>$vo): ?>
                                 <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"false"))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                             <?php endforeach; endif; else: echo "" ;endif; ?>
                         </select>

                     </div>
                 </div>-->
                <div class="form-group">
                    <label for="c-can_share" class="control-label col-xs-12 col-sm-2"><?php echo __('Can_share'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">

                        <select  id="c-can_share" data-rule="required" class="form-control selectpicker" name="row[can_share]" disabled>
                            <?php if(is_array($canShareList) || $canShareList instanceof \think\Collection || $canShareList instanceof \think\Paginator): if( count($canShareList)==0 ) : echo "" ;else: foreach($canShareList as $key=>$vo): ?>
                            <option value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['can_share'])?$row['can_share']:explode(',',$row['can_share']))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>

                    </div>
                </div>
                <div class="form-group">
                    <label for="c-can_give_friend" class="control-label col-xs-12 col-sm-2"><?php echo __('Can_give_friend'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">

                        <select  id="c-can_give_friend" data-rule="required" class="form-control selectpicker" name="row[can_give_friend]" disabled>
                            <?php if(is_array($canGiveFriendList) || $canGiveFriendList instanceof \think\Collection || $canGiveFriendList instanceof \think\Paginator): if( count($canGiveFriendList)==0 ) : echo "" ;else: foreach($canGiveFriendList as $key=>$vo): ?>
                            <option value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['can_give_friend'])?$row['can_give_friend']:explode(',',$row['can_give_friend']))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>

                    </div>
                </div>
                <div class="form-group">
                    <label for="c-service_phone" class="control-label col-xs-12 col-sm-2"><?php echo __('Service_phone'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-service_phone" class="form-control" name="row[service_phone]" type="text" value="<?php echo $row['service_phone']; ?>" placeholder="0755-89895858" disabled>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="link">
                <div class="form-group">
                    <label for="c-center_title" class="control-label col-xs-12 col-sm-2"><?php echo __('Center_title'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-center_title"  class="form-control" name="row[center_title]" type="text" value="<?php echo $row['center_title']; ?>" maxlength="9" value="立即使用" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-center_sub_title" class="control-label col-xs-12 col-sm-2"><?php echo __('Center_sub_title'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-center_sub_title" class="form-control" name="row[center_sub_title]" type="text" value="<?php echo $row['center_sub_title']; ?>" maxlength="12" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-center_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Center_url'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-center_url" class="form-control" name="row[center_url]" type="text" value="<?php echo $row['center_url']; ?>" maxlength="128" disabled>
                    </div>
                </div>
                <hr>
                <div class="form-group">
                    <label for="c-custom_url_name" class="control-label col-xs-12 col-sm-2"><?php echo __('Custom_url_name'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-custom_url_name" class="form-control" name="row[custom_url_name]" type="text" value="<?php echo $row['custom_url_name']; ?>" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-custom_url_sub_title" class="control-label col-xs-12 col-sm-2"><?php echo __('Custom_url_sub_title'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-custom_url_sub_title" class="form-control" name="row[custom_url_sub_title]" type="text" value="<?php echo $row['custom_url_sub_title']; ?>" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-custom_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Custom_url'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-custom_url" class="form-control" name="row[custom_url]" type="text" value="<?php echo $row['custom_url']; ?>" disabled>
                    </div>
                </div>
                <hr>
                <div class="form-group">
                    <label for="c-promotion_url_name" class="control-label col-xs-12 col-sm-2"><?php echo __('Promotion_url_name'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-promotion_url_name" class="form-control" name="row[promotion_url_name]" type="text" value="<?php echo $row['promotion_url_name']; ?>" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-promotion_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Promotion_url'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-promotion_url" class="form-control" name="row[promotion_url]" type="text" value="<?php echo $row['promotion_url']; ?>" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-source" class="control-label col-xs-12 col-sm-2"><?php echo __('Source'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-source" class="form-control" name="row[source]" type="text" value="<?php echo $row['source']; ?>" disabled>
                    </div>
                </div>
            </div>
        </div>
        </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>
<script>
    var dateType = document.getElementById('c-date_type');
    dateType.addEventListener("change", function(){
        var type = this.value;
        if(type === 'DATE_TYPE_FIX_TIME_RANGE'){
            document.getElementById('date_block1').className = 'hidden';
            document.getElementById('date_block2').className = 'visible';
        }else if(type === 'DATE_TYPE_FIX_TERM'){
            document.getElementById('date_block1').className = 'visible';
            document.getElementById('date_block2').className = 'hidden';
        }
//        alert(type);
//        console.log(1);
    }, false);

//    $("#date_type").change(function(){
//        var dateType = $(this).val();
//        alert(dateType);
//    });
</script>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="__CDN__/assets/js/require.js" data-main="__CDN__/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>